import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
      '@comp': path.resolve(__dirname, './src/components/'),
      '@assets': path.resolve(__dirname, './src/assets/'),
      '@views': path.resolve(__dirname, './src/views/'),
      '@config': path.resolve(__dirname, './src/config/'),
      '@store': path.resolve(__dirname, './src/store/'),
      '@router': path.resolve(__dirname, './src/router/'),
      vue: 'vue/dist/vue.esm-bundler.js',
    },
  },
  server: {
    host: '0.0.0.0',
    port: 3040,
  },
});
